package com.whw.springboot.walk.mapper;

import com.whw.springboot.walk.entity.Apply;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApplyMapper {

    int addApply(Apply apply);

    int deleteApplyByPrimaryKey(String applyId);

    int deleteApplyByActId(String actId);

    int deleteApplyByUserId(String userId);

    int deleteApplyByActIdAndUserId(Apply apply);

    int updateApplyPrimaryKey(Apply apply);

    int updateApplyByPrimaryKeySelective(Apply apply);

    List<Apply> selectAllApply();

    List<Apply> selectAllApplyByUserId(String userId);

    List<Apply> selectAllApplyByActId(String actId);

    Apply selectApplyByUserIdAndActId(@Param("userId")String userId,@Param("actId")String actId);

    Apply selectAllApplyByPrimaryKey(String applyId);



}
